At Microsoft Build 2017, Microsoft unveiled the brand new Visual Studio for Mac-available now (see what's new here). To develop and deploy Xamarin apps to the platform of your choice, you now have two options available to you on Mac. Blow are instructions on how to get started on Xamarin Studio and Visual Studio for Mac.
NOTE: You only need to install one or the other. No need to install both.
Welcome. This guide will assist users running Mac install Xamarin Studio Community with the tools nessecary for Xamarin. If you are on a Windows, follow the guide here
- Device running Mac (either OS X El Capitan (10.11) or macOS Sierra (10.12))
- Latest version of Xcode
- Download Xamarin Studio Community Installer from https://www.xamarin.com/download.
- Open the installer. You will be presented with a lot of options. For MSA right now, leave everything selected and click 'Continue'.
- Select where you like to install Xamarin and click 'Continue'.
- Click 'Install' and let it do its thing. This may take awhile depending on your internet connection. You may be prompted during the installation to enter your admin password so be ready for that.
Xamarin Studio does not include the iOS simulator and will not deploy to an iOS device without first downloading and installing Xcode.
- Download Xcode through either the App Store and searching for 'Xcode' or by navigating to https://itunes.apple.com/nz/app/xcode/id497799835?mt=12
- Open Xamarin Studio
- Select 'New Solution...'
- Under Multiplatform > App > Forms App and click 'Next'.
- Give your app a name. Make sure 'Android' and 'iOS' are checked. We want 'Use Protable Class Library' selected. 'Use XAML for user interface files should also be checked. Click 'Next' when you're done.
- Edit the project name and solution name to whatever you like or leave it as it is. If you want to change the location the project is saved to this is where you do it. Click 'Create' when you're done.
This will create a blank Xamarin project for you. Deploy it and check it out!
IMPORTANT STEP For Module One, you need to change the UI to display your name somewhere.
Welcome. This guide will assist users running Mac install Visual Studio 2017 Community with the tools nessecary for Xamarin. If you are on a Windows, follow the guide here
Supported Operating Systems |
Visual Studio 2017 for Mac will install and run on the following operating systems:
*the latest version of Xcode 8.3 requires macOS Sierra 10.12, therefore Xamarin.iOS and Xamarin.Mac projects also require that minimum version |
Hardware |
|
Additional Requirements |
|
- Download Visual Studio 2017 Community Installer from https://www.visualstudio.com/vs/visual-studio-mac/.
- Open the installer. You will be presented with a lot of options. For MSA right now, leave everything selected and click 'Install'.
- Once Visual Studio has finished installing, click 'Start Visual Studio'.
Just like Xamarin Studio, Visual Studio does not include the iOS simulator and you will not deploy to an iOS device without first downloading and installing Xcode.
- Download Xcode through either the App Store and searching for 'Xcode' or by navigating to https://itunes.apple.com/nz/app/xcode/id497799835?mt=12
Once Visual Studio has finsihed installing and you've opened it up for the first time, you should see something like this.
- To update first click 'Visual Studio Community' -> 'Check for Updates...'
- You'll then see a popup window with various packages beginning to download. Leave it as it is until it has finished downloading. You may need to enter your password from time to time during the installation process. Once completed, Visual Studio will then restart. Check for updates again until there are no new updates left to download.
- Click on 'New Project...'
- Select 'App' -> 'Blank Forms App'.
- Give your app a name, make sure you have 'Android' and 'iOS' enabled, you're using 'Portable Class Library' and 'Use XAML for user interface files' checked.
- Select where you want to save the project and leave everything else as it is. Click 'Create' when you're done.
- Now you're ready to begin developing your first Xamarin application!
It's now time to actually run your app! A screenshot of this is required for module one.